home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / LinkList / DLLClient / MkClientOs
Text File  |  1995-09-04  |  2KB  |  86 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.AddToHead    \
  4.             o.AddToTail    \
  5.             o.InList    \
  6.             o.InsertA    \
  7.             o.InsertB    \
  8.             o.ListLength    \
  9.             o.Unlink    \
  10.  
  11.  
  12. LibName        =    LinkList
  13.  
  14.  
  15.  
  16. # Template makefile to make all .o files
  17. # for a DeskLib sublibrary. Compilation 
  18. # is for static linking with client
  19. # applications (ie not cc -zM but
  20. # _DeskLib_SDLS_CLIENT is predefined).
  21.  
  22. # The macro $(ObjectFiles) should be set at the 
  23. # start of this file, to be a space-separated
  24. # list of object files.
  25. # This is done by 'Makatic'.
  26.  
  27. # The macro $(LibName) should also be set at the 
  28. # start of this file, to be the name of the 
  29. # DeskLib sublibrary.
  30.  
  31. # Compiler flags, These can be anything. 
  32. # All essential flags (eg CC -zM
  33. # are included in the macro $(CC).
  34. #
  35. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_SDLS_CLIENT -D_DeskLib_$(LibName) -I,C:
  36. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  37.  
  38. CC        =    cc -c $(CCFlags)
  39. ASM        =    ObjAsm $(ASMFlags)
  40.  
  41.  
  42. # -------------------------------------------------------
  43. # Everything below here should probably not be changed...
  44. # -------------------------------------------------------
  45.  
  46. # Here's what we want to make...
  47. #
  48. All:    $(ObjectFiles)
  49.  
  50.  
  51. VPATH = @.^
  52.  
  53. .SUFFIXES:    .o .c .s
  54.  
  55. .c.o:
  56.     $(CC) -o $@ $<
  57.  
  58. .s.o:
  59.     $(ASM) $(ASMFlags) -from $< -to $@
  60.  
  61.  
  62.  
  63. # Dynamic dependencies:
  64. o.AddToHead:    ^.c.AddToHead
  65. o.AddToHead:    DeskLib:h.LinkList
  66. o.AddToHead:    DeskLib:h.Core
  67. o.AddToTail:    ^.c.AddToTail
  68. o.AddToTail:    DeskLib:h.LinkList
  69. o.AddToTail:    DeskLib:h.Core
  70. o.InList:    ^.c.InList
  71. o.InList:    DeskLib:h.LinkList
  72. o.InList:    DeskLib:h.Core
  73. o.InsertA:    ^.c.InsertA
  74. o.InsertA:    DeskLib:h.LinkList
  75. o.InsertA:    DeskLib:h.Core
  76. o.InsertB:    ^.c.InsertB
  77. o.InsertB:    DeskLib:h.LinkList
  78. o.InsertB:    DeskLib:h.Core
  79. o.ListLength:    ^.c.ListLength
  80. o.ListLength:    DeskLib:h.LinkList
  81. o.ListLength:    DeskLib:h.Core
  82. o.Unlink:    ^.c.Unlink
  83. o.Unlink:    DeskLib:h.LinkList
  84. o.Unlink:    DeskLib:h.Core
  85.